from random import randint 
N = int(input())
count = 0
for i in range (N) :
    x = randint (-100, 100)
    y = randint (-100, 100)
    if -7 <= x <= 5 and -8 <= x <=5 and -7 <= y <= 5 and -8 <= y <=5:
        count = count + 1
print('Количество выстрелов', N)
print('Количество попаданий', count)
